package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * description:其他渠道计划_销售计划准确率对应枚举
 *
 * @author: huangtao
 * @data: 2020/7/31
 */
public enum SalesPlanOtherAccuracyEnum {
    /**
     * 计划值
     */
    PLAN_QTY("planQty", "计划值"),
    /**
     * 实际确认量
     */
    ACTUAL_CONFIRMED_QTY("actualConfirmedQty", "实际确认量"),
    /**
     * 实际销量
     */
    ACTUAL_SALES_QTY("actualSalesQty", "实际销量"),
    /**
     * 计划准确率
     */
    PLAN_ACCURACY("planAccuracy", "计划准确率");

    private String code;
    private String desc;

    /**
     * 指标的枚举顺序为excel导出时候指标的顺序
     *
     * @param
     * @return {@link List <String>}
     **/
    public static List<String> getAllTargetsDesc() {
        List<String> targetsDesc = new ArrayList<>();
        for (SalesPlanOtherAccuracyEnum item : SalesPlanOtherAccuracyEnum.values()) {
            targetsDesc.add(item.getDesc());
        }
        return targetsDesc;
    }

    SalesPlanOtherAccuracyEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
